package com.ttjj.common;

import com.ttjj.entity.map.Coordinate;

/**
 * 常量类
 *
 * @author hhs
 * @date 2024-09-25
 */
public class Constants {
    public static final Coordinate FARMERHOME = new Coordinate(700, 400);
    public static final int FrameWidth = 1920;
    public static final int FrameHeight = 1080;
    public static final int PixelCount = 1120000;
    public static final int Height = 16;
    public static final int Width = 28;

    public static final int SPEED_G = 10;
    public static final int SPEED_M = 5;

    /**
     * 单坐标占用像素大小
     *
     * @return
     */
    public static int getCommonLen() {
        String mapSize = AppConfigUtil.mapSize;
        return "s".equalsIgnoreCase(mapSize) ? 40 : 50;
    }
}
